/**
 * @author: SEKin 
 * @Date: 2025-01-13 17:29:03 
 * @description:  
 * @Last Modified time: 2025-01-13 17:29:03 
 */
import {defineConfig} from 'vite';
import vue from "@vitejs/plugin-vue";
import react from "@vitejs/plugin-react";
import ElementPlus from 'unplugin-element-plus/vite'
// import vueJsx from "@vitejs/plugin-vue-jsx";
import eslint from 'vite-plugin-eslint'

export default defineConfig({
	base: "/demo",
	mode: "development",
	build: {
		target: 'esnext',
		outDir: './dist',
	},
	plugins: [
		vue({
			exclude: ['*.tsx', "*.jsx"],
		}),
		// vueJsx(), // 和react 同时用会报错
		react({
			exclude: ['*.vue'],
		}),
		eslint(),
		ElementPlus({}),
	],
	resolve: {},
	server: {
		port: 8088,
		host: "0.0.0.0", // 可以让其他电脑通过ip访问
		open: "/"
	}
})
